package com.zhangxu.microservice.system.web.request;

import com.zhangxu.microservice.system.dao.enums.GenderEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "新增员工请求参数")
public class CreateEmployeeReq {

    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String account;

    @Schema(description = "昵称")
    private String name;

    @Schema(description = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @Schema(description = "邮箱")
    @NotBlank(message = "邮箱不能为空")
    @Email
    private String email;

    @Schema(description = "性别")
    private GenderEnum gender;

}
